<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">基本信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" onchange="setZhtitle(this.value);" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目性质：</td>
	<td nowrap  valign="middle" colspan="5">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="identified" label="新建" value="01" /><span style="vertical-align: middle;">新建</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="identified" label="续建" value="02" /><span style="vertical-align: middle;">续建</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="identified" label="扩建" value="03" /><span style="vertical-align: middle;">扩建</span></label>
	<input type="hidden" name="proposal/identified_value" id="identified_value" class="required" value="<x:out select="$xmlData/data/proposal/identified_value" />" label="项目性质" /> 
	<input type="hidden" name="proposal/identified_name" id="identified_name" value="<x:out select="$xmlData/data/proposal/identified_name" />" label="项目性质" /></td>
	</tr>
	<tr>
	    <td  align="right"><span class="color_red">*</span>项目核准或备案文号：</td>
		<td colspan="2"><input name="proposal/project_approval" label="项目核准或备案文号" type="text"  class="input_css required "  maxlength="50" value="<x:out select="$xmlData/data/proposal/project_approval" />"/></td>
		<td  align="right" nowrap><span class="color_red">*</span>项目核准或备案时间：</td>
		<td colspan="2">
			<c:set var="approval_date"><x:out select="$xmlData/data/proposal/approval_date" /></c:set>
			<cpt:date id="approval_date" name="proposal/approval_date" value="${approval_date}" className=" required date" label="项目核准或备案时间"></cpt:date> 
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目实施地点：</td>
	<td nowrap colspan="5">
		<c:set var="address_value"><x:out select="$xmlData/data/proposal/address_value" /></c:set>
		<cpt:checkbox key="address" name="address" repeatColumn="9" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
		<input type="hidden" id="address_value" name="proposal/address_value" class="required" value="${address_value}" label="项目实施地点">
		<input type="hidden" name="proposal/address_name" value="<x:out select="$xmlData/data/proposal/address_name" />">
	</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td >
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
		<td  align="right" nowrap><span class="color_red">*</span>开始日期：</td>
		<td >
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="开始日期" ></cpt:date> 
		</td>
		<td  align="right" nowrap><span class="color_red">*</span>结束日期：</td>
		<td  >
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="结束日期"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>产业链环节：</td>
	<td nowrap colspan="5" valign="middle">
	<label> <input type="radio" class="do " id="industry_01" style="vertical-align: middle;" name="industry_type" label="物联网设备制造" value="01" onclick="onChange();"/><span style="vertical-align: middle;">物联网设备制造</span></label> 
	<label> <input type="radio" class="do " id="industry_02" style="vertical-align: middle;" name="industry_type" label="软件产品开发" value="02" onclick="onChange();"/><span style="vertical-align: middle;">软件产品开发</span></label> 
	<label> <input type="radio" class="do " id="industry_03" style="vertical-align: middle;" name="industry_type" label="系统集成" value="03" onclick="onChange();"/><span style="vertical-align: middle;">系统集成</span></label>
	<label> <input type="radio" class="do " id="industry_04" style="vertical-align: middle;" name="industry_type" label="网络及运营服务" value="04" onclick="onChange();"/><span style="vertical-align: middle;">网络及运营服务</span></label>
	<label> <input type="radio" class="do " id="industry_05" style="vertical-align: middle;" name="industry_type" label="其他：" value="05" onclick="onChange();"/><span style="vertical-align: middle;">其他</span></label>
	<input name="proposal/industry_type_other" id="industry_type_other" label="产业类别-->其他" type="text"  class="input_css gray "  disabled maxlength="20" value="<x:out select="$xmlData/data/proposal/industry_type_other" />"/>
	<input type="hidden" name="proposal/industry_type_value" id="industry_type_value" class="required" value="<x:out select="$xmlData/data/proposal/industry_type_value" />" label="产业类别" /> 
	<input type="hidden" name="proposal/industry_type_name" id="industry_type_name" value="<x:out select="$xmlData/data/proposal/industry_type_name" />" label="产业类别" /></td>
	</tr>
	</table>
<div class="t_bar"><span class="color_red">*</span>主要产品或服务</div>
<table  id="tblProducts" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="15%">主要产品或服务名称</th> 
				        <th class="TblHead" align="center"  width="15%">是否具有自主知识产权</th> 
						<th class="TblHead" align="center"  width="15%">产品类型</th> 
						<th class="TblHead" align="center"  width="15%">应用领域或项目</th> 
						<th class="TblHead" align="center"  width="15%">销售额（万元）</th> 
						<th class="TblHead" align="center"  width="15%">占企业总销售收入比重(%)</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name=sblProducts >
						</td>
						<td align="center">&nbsp;
							<span name="products|product[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="products|product[0]|name"  class=" input_text required" maxlength="50" style="width:80%" label="主要产品或服务名称"/>
						</td>
						<td>
							<!-- <input type="text" name="products|product[0]|knowledge"  maxlength="10"  style="width:80%" class=" input_text required" label="是否具有自主知识产权"/> -->
						    <cpt:select id="knowledge_[index]" name="knowledge" key="is_property_right"  onChange="initControlValue(this.id)" value="" className="common_select"></cpt:select>
				            <input type="hidden" name="products|product[0]|knowledge_value" value="" class="required" label="是否具有自主知识产权"/>
				            <input type="hidden" name="products|product[0]|knowledge_name" value=""/>
								
						</td> 
						<td>
							<input type="text" name="products|product[0]|product_type"  label="产品类型" maxlength="50"  style="width:80%" class="input_text required" />
						</td> 
						<td>
							<input type="text" name="products|product[0]|field" label="应用领域或项目"  maxlength="50"  style="width:80%" class="input_text required" />
						</td> 
						<td>
							<input type="text" name="products|product[0]|saleroom"  lablel="销售额" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%" class=" input_text required" />
						</td> 
						<td>
							<input type="text" name="products|product[0]|saleroom_pre"  lablel="占企业总销售收入比重" onfocus="InitInput.setNumber(this,7,2,2)" style="text-align:right;width:80%" class=" input_text required" />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/products/product" var="product">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="sblProducts" >
						</td>
						<td align="center">&nbsp;
							<span name="products/product[${flag}${index}]@seq_no" ><x:out select="$product/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="products/product[${flag}${index}]/name"   style="width:80%"   class=" input_text required" value="<x:out select="$product/name"/>" label="主要产品或服务名称" maxlength="50"/>
						</td>
						<td >
							<%-- <input type="text" name="products/product[${flag}${index}]/knowledge" style="width:80%"  class=" input_text required" value="<x:out select="$product/knowledge"/>" label="是否具有自主知识产权" maxlength="10"/> --%>
						    <c:set var="knowledge_value"><x:out select="$product/knowledge_value"/></c:set>
							<cpt:select id="knowledge_${index}" name="knowledge" key="is_property_right"  onChange="initControlValue(this.id)" value="${knowledge_value }" className="common_select"></cpt:select>
				            <input type="hidden" name="products/product[${flag}${index}]/knowledge_value" value="<x:out select="$product/knowledge_value"/>" class="required" label="是否具有自主知识产权"/>
				            <input type="hidden" name="products/product[${flag}${index}]/knowledge_name" value="<x:out select="$product/knowledge_name"/>"/>
						</td> 
						<td >
							<input type="text" name="products/product[${flag}${index}]/product_type" style="width:80%"  class=" input_text required" value="<x:out select="$product/product_type"/>" label="产品类型" maxlength="50"/>
						</td> 
						<td >
							<input type="text" name="products/product[${flag}${index}]/field" style="width:80%"  class=" input_text required" value="<x:out select="$product/field"/>" label="应用领域或项目" maxlength="50"/>
						</td> 
						<td >
							<input type="text" name="products/product[${flag}${index}]/saleroom"  onfocus="InitInput.setNumber(this,7,4,2)"   lablel="销售额" style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$product/saleroom" />"/>
						</td> 
						<td >
							<input type="text" name="products/product[${flag}${index}]/saleroom_pre"  onfocus="InitInput.setNumber(this,7,2,2)" lablel="占企业总销售收入比重"  style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$product/saleroom_pre" />"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblProducts');try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblProducts','sblProducts')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblProducts','sblProducts')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblProducts','主要产品或服务');">
					</td></tr>
	</table>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo1"
	cellspacing="1">	
	<tr>
		<td   colspan="6" class="t_bar2">申请项目资金情况(单位：万元)</td>
		
	</tr>
	<tr>
	<td  align="right" >项目计划投入资金总额：</td>
	<td  colspan="1">
	<input  name="proposal/xmjhtzze" id="xmjhtzze" disabled  label="项目计划投资总额" type="text"  class="input_css  gray" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/xmjhtzze" />"/> 
	</td>
	<td  align="right" >其中：已投入资金：</td>
	<td  >
	<input  name="proposal/ytrzj" id="ytrzj" class="gray " disabled label="其中：已投入资金" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/ytrzj" />"/> 
	</td>
	<td  align="right" >计划新增投入资金：</td>
	<td  colspan="1">
	<input  name="proposal/jhxztrzj" id="jhxztrzj" disabled  label="计划新增投入资金" type="text"  class="input_css  gray" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/jhxztrzj" />"/> 
	</td>
	</tr>
	
	<tr>
	<td  align="right" >项目计划设备投入资金总额：</td>
	<td  colspan="1">
	<input  name="proposal/xmjhsbtrzjze" id="xmjhsbtrzjze" disabled  label="项目计划设备投入资金总额" type="text"  class="input_css  gray" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/xmjhsbtrzjze" />"/> 
	</td>
	<td  align="right" >其中：已投入设备资金：</td>
	<td  colspan="1">
	<input  name="proposal/ytrsbzj" id="ytrsbzj" disabled  label="其中：已投入设备资金" type="text"  class="input_css  gray" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/ytrsbzj" />"/> 
	</td>
	<td  align="right" >计划新增设备投入资金：</td>
	<td  colspan="1">
	<input  name="proposal/jhxzsbtrzj" id="jhxzsbtrzj" disabled  label="计划新增设备投入资金" type="text"  class="input_css  gray" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/jhxzsbtrzj" />"/> 
	</td>
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td  colspan="2"><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right">申请金额：</td>
		<td colspan="2">
		<input  name="proposal/sqje" id="sqje" class="gray " disabled label="申请金额" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
		</td>
	</tr>
	<tr>
        <td  align="right">支持方式：</td>
		<td  colspan="2">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td colspan="2">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  colspan="2"><span name="proposal/org_name">无锡市经济和信息化委员会</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="2">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>
    <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo2">
    <tr>
		<td colspan="4" class="t_bar2">项目依托科技成果情况</td>
	</tr>
	<tr>
	   <td align="right"><span class="color_red">*</span>技术成果名称：</td>
	   <td colspan="3"><input name="proposal/technology_patent" label="技术成果名称" type="text"  class="input_css required"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/technology_patent" />"/></td>
	</tr>
	<tr>
	   <td align="right"><span class="color_red">*</span>有效期：</td>
	   <td colspan="3">
	   <c:set var="period_start_date"><x:out select="$xmlData/data/proposal/period_start_date" /></c:set>
	   <cpt:date id="period_start_date" name="proposal/period_start_date" value="${period_start_date}" className="required date  dateCompare:period_end_date" label="开始日期" ></cpt:date>
	   至<c:set var="period_end_date"><x:out select="$xmlData/data/proposal/period_end_date" /></c:set>
	   <cpt:date id="period_end_date" name="proposal/period_end_date" className="required date" label="结束日期"  value="${period_end_date}" ></cpt:date> 
	   </td>
	</tr>
	<tr>
	   <td align="right"><span class="color_red">*</span>证书号：</td>
	   <td><input name="proposal/certificate_no" label="证书号" type="text"  class="input_css required"  maxlength="100" value="<x:out select="$xmlData/data/proposal/certificate_no" />"/></td>
	   <td align="right"><span class="color_red">*</span>技术成果来源：</td>
	   <td><input name="proposal/technology_source" label="技术成果来源" type="text"  class="input_css required"  maxlength="100" value="<x:out select="$xmlData/data/proposal/technology_source" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>开发形式：</td>
	<td nowrap colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="research" label="合作开发" value="01" /><span style="vertical-align: middle;">合作开发</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="research" label="独立开发" value="02" /><span style="vertical-align: middle;">独立开发</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="research" label="引进消化吸收" value="03" /><span style="vertical-align: middle;">引进消化吸收</span></label>
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="research" label="其他" value="04" /><span style="vertical-align: middle;">其他</span></label>
	<input type="hidden" name="proposal/research_value" id="research_value" class="required" value="<x:out select="$xmlData/data/proposal/research_value" />" label="开发形式" /> 
	<input type="hidden" name="proposal/research_name" id="research_name" value="<x:out select="$xmlData/data/proposal/research_name" />" label="开发形式" /></td>
	</tr>
    </table>


	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	
	<tr>
		<td    class="t_bar2" colspan="4">合作参与单位信息</td>
		
	</tr>
	<tr>
		<td    class="t_bar2" colspan="4">合作单位信息1</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature1">{'id':'<x:out select="$xmlData/data/proposal/nature1_code" />','name':'<x:out select="$xmlData/data/proposal/nature1_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature1}"  label="合作单位信息1-->注册类型"
          		id="nature1" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature1_code" type="hidden" name="proposal/nature1_code" class="" label="合作单位信息1-->注册类型" value="<x:out select="$xmlData/data/proposal/nature1_code" />"/>
            <input id="nature1_name" type="hidden" name="proposal/nature1_name"  value="<x:out select="$xmlData/data/proposal/nature1_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no1" label="合作单位信息1-->组织机构代码" type="text"  class="input_css orgCard" onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no1" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature2">{'id':'<x:out select="$xmlData/data/proposal/nature2_code" />','name':'<x:out select="$xmlData/data/proposal/nature2_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
          		id="nature2" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature2_code" type="hidden" name="proposal/nature2_code"  class="" label="合作单位信息2-->注册类型" value="<x:out select="$xmlData/data/proposal/nature2_code" />"/>
            <input id="nature2_name" type="hidden" name="proposal/nature2_name"  value="<x:out select="$xmlData/data/proposal/nature2_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no2" label="合作单位信息2-->组织机构代码" type="text"  class="input_css orgCard" onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table>
<br/>


<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo3">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
	
</table>
<script type="text/javascript">
$(function(){
	cydw('org1');
	cydw('org2');
	onChange();
	setZhtitle($("#zh_title").val());
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

function onChange(){
	if($("#industry_05").is(":checked")){
		$("#industry_type_other").removeClass("gray");
		$("#industry_type_other").addClass("required");
		$("#industry_type_other").attr("disabled",false);
	}else{
		$("#industry_type_other").removeClass("required");
		$("#industry_type_other").addClass("gray");
		$("#industry_type_other").attr("disabled",true);
		$("#industry_type_other").val("");
	}
}
function setZhtitle(val){
	$("#prjName").text(val);
}
</script>

